package com.hh.common.request.integral;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class IntegralCreateOrderRequest {

    /**
     * 商品id
     */
    @NotNull(message = "商品id不能为空")
    private Integer productId;

    /**
     * 商品规格属性id(skuId)
     */
    @NotNull(message = "商品规格属性id不能为空")
    private Integer attrValueId;

    /**
     * 商品数量
     */
    @NotNull(message = "商品数量不能为空")
    private Integer productNum;

    /**
     * 收货地址id
     */
    private Integer addressId;

    /**
     * 订单备注
     */
    private String mark;
}
